package com.bjx.system.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @desc: 用户角色关联数据实体
 * @author: liushuai
 * @date: 2022/10/17
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user_role")
@Schema(title = "UserRole",description = "用户角色关联")
public class UserRoleEntity  {
      /**
      * 用户角色关联id
      */
      @TableId(type = IdType.AUTO)
      @Schema(title = "userRoleId",description = "用户角色关联id")
      private  Long userRoleId; 
      
      /**
      * 用户id
      */
      @Schema(title = "userId",description = "用户id")
      private  Long userId; 
      
      /**
      * 角色id
      */
      @Schema(title = "roleId",description = "角色id")
      private  Long roleId; 
      
}